package com.itheima.tist;

public class Student {
    private String name;

    public Student() {
    }

    public Student(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        System.out.println("方法重打印this");
        System.out.println(this);
        this.name = name;
    }
    public void demo(){
        this.test();
        System.out.println("demo");
    }
    public void test(){
        System.out.println("this");
    }
}
